package com.tedu.homework;

import java.util.Scanner;

/*
* 打印菱形
* */
public class TestRhombus {
    public static void main(String[] args) {
        int n = new Scanner(System.in).nextInt();
        /*
        * 菱形的上半部分
        * */
        for (int i = 1; i < n; i++) {
            //打印空格
            for (int k = 1; k <= n - i; k++) {
                System.out.print(' ');
            }
            //打印*
            for (int j = 1; j <= i * 2 - 1; j++) {
                System.out.print('*');
            }
            //换行
            System.out.println();
        }
        /*
        菱形的下班部分
        * */
        for (int i = n; i >= 1; i -- ){
            //打印空格
            for (int k = 1; k <= n - i ; k++) {
                System.out.print(' ');
            }
            //打印*
            for (int j = 1; j <= i * 2 - 1; j++) {
                System.out.print('*');
            }
            System.out.println();
        }

    }
}
